package com.health.circle.ui;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.health.circle.R;
import com.health.circle.base.BaseActivity;

public class LoginActivity extends BaseActivity implements OnClickListener{

	private Button mBtnBack;
	
	private Button mBtnRegister;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login);
		
		initView();
	}

	private void initView(){
		
		mBtnBack = (Button) findViewById(R.id.btn_back);
		mBtnBack.setOnClickListener(this);
		
		mBtnRegister = (Button) findViewById(R.id.btn_register);
		mBtnRegister.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			
			super.finish();
			
			break;
		case R.id.btn_register:
			
			openActivity(RegisterActivity.class);
			
			break;

		default:
			break;
		}
	}

}
